<?php

/**
 * Falcon5 配置文件
 * 
 * 本文件包含插件的所有配置参数
 */

return [
    // 基本配置
    'plugin' => [
        'version' => '1.0.0',
        'id' => 'falcon5',
        'name' => 'Falcon5Translate',
        'text_domain' => 'falcon5_text_domain',
        'client_type' => 'wordpress',
    ],
    
    // 语言相关配置
    'language' => [
        'admin_login_url' => falcon5_env('FC5_ADMIN_LOGIN_URL', 'http://localhost'),
        'edit_site_id' => 'site_id',
        'edit_token' => 'token',
        'edit_key' => 'language_edit',
        'pattern' => 'af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-cn|zh-tw|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu|zh-tw|zh-cn',
    ],
    
    // API 配置
    'api' => [
        'proxy_host' => falcon5_env('FC5_PROXY_HOST', 'http://localhost'),
    ],
    // 数据库迁移配置
    'migrations' => [
        ['20250116033409', 'CacheMigration'],
        // 添加其他迁移记录
    ],
    
    // Sentry 配置
    'sentry' => [
        'dsn' => 'https://de3b43a76229e5dfd4d29d94aa7290a0@o4507972878991360.ingest.us.sentry.io/4508969995534336',
        'environment' => defined('WP_DEBUG') && WP_DEBUG ? 'development' : 'production',
    ],
    
    // 日志配置
    'log' => [
        'retention_days' => 7,
        'buffer_size' => 10,
    ],
];
